<template>
    <view class="bannerDetail">
        <rich-text :nodes="content"></rich-text>
    </view>
</template>

<script>
    export default{
        name:"bannerDetail",
        data(){
            return{
                content:'',
                id:''
            }
        },
        onLoad(query){
            this.id=query.id
        },
        mounted(){
            this.getBannerDetail(this.id)
        },
        methods:{
            async getBannerDetail(id){
                let resData= await this.$apis.getBannerDetail({id:id})
                let str = this.$util.formatRichText(resData.data.model.content)
                this.content=str.replace(/px/g,"rpx")
            }
        }
    }
</script>

<style lang="less" scoped>

</style>
